class ReparentTest < Sketch3D
  def container
    super do
      block { background 0 }
      object :s => 0.6, :ty => 0.5 do
        (-2..2).each do |x|
          box :tx => x, :fill => Color.random do
            box :ty => -0.8, :rz => 0.7, :s => 0.8 do
            box :ty => -0.8, :rz => 0.7, :s => 0.8 do
            box :ty => -0.8, :rz => 0.7, :s => 0.8 do
            box :ty => -0.8, :rz => 0.7, :s => 0.8
            end
            end
            end
            block { @ry = pi_pulse(150) + x + r_s / 10.0 }
          end
        end
      end
    end
  end
end
